<template>
  <view class="page">
    <view class="tcard">
      <view class="title flexR">
        住院人信息
        <view class="tig_status success">
          已出院
        </view>
      </view>
      <view class="tform no-border left">
        <view class="tform-item">
          <view class="label">住院患者：</view>
          <view class="value">{{userInfo.name}}</view>
        </view>
        <view class="tform-item">
          <view class="label align">住院号：</view>
          <view class="value">000123032420</view>
        </view>
        <view class="tform-item">
          <view class="label">入院病区：</view>
          <view class="value">内科中心病区</view>
        </view>
        <view class="tform-item">
          <view class="label">入院科室：</view>
          <view class="value">门诊内一科</view>
        </view>
        
        <view class="tform-item">
          <view class="label align">床位号：</view>
          <view class="value">
            39
          </view>
        </view>
        <view class="tform-item">
          <view class="label">入院日期：</view>
          <view class="value">2024-09-15</view>
        </view>
        <view class="tform-item">
          <view class="label">出院日期：</view>
          <view class="value">2024-09-15</view>
        </view>
        <view class="tform-item">
          <view class="label">住院天数：</view>
          <view class="value">7天</view>
        </view>
      </view>
    </view>
    
    <view class="tcard detail">
      <view class="title">
        费用明细
      </view>
      <view class="tform">
        <view class="tform-item" @click="toDailyDetail">
          <view class="value">药品名称</view>
          <view class="value">数量</view>
          <view class="value">用法用量</view>
        </view>
        <view v-for="i in 4" class="tform-item" @click="toDailyDetail">
          <view class="value">阿司匹林肠溶片</view>
          <view class="value">×1</view>
          <view class="value">一日1次，一次1片</view>
        </view>
      </view>
    </view>
    
    <view class="tcard detail">
      <view class="title">
        注意事项
      </view>
      <view class="">
        1、高血压患者需要终身服药，血压水平不能依据症状判定。<br>
        2、严格遵医嘱服药，勿随便停药、减药，不可自行改变剂量和制；如果在服药过程中血压下降过快，同时伴有头晕、头昏等脑部缺血症状应积极咨询医生或药师，调整药物。<br>
        3、自我监护：服用氨氯地平可能会引起面部潮红、踝部水肿等症状，如能耐受可继续服药。<br>
      </view>
    </view>
    
  </view>
</template>

<script>
  import { mapGetters } from 'vuex';
  export default {
    data() {
      return {
        
      }
    },
    computed:{
    	...mapGetters(['userInfo']),
    },
    methods: {
      
    }
  }
</script>

<style lang="scss" scoped>
.title {
  justify-content: space-between;
}
.align {
  width: 5em;
  text-align: justify;
  text-align-last: justify;
}
.detail {
  .tform-item {
    >view {
      // max-width: 200upx;
      width: 40%;
      &:nth-child(2) {
        width: 20%;
      }
    }
    &:nth-child(1) {
      font-weight: 700;
    }
  }
}
</style>
